css: Avoid allocations in gtk_css_value_array_compute
authorAlexander Larsson <alexl@redhat.com>
Mon, 3 Dec 2012 13:30:37 +0000 (14:30 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 4 Dec 2012 19:16:44 +0000 (20:16 +0100)
commitc3e9112f7fc246062cf2d78f82a7a0029f45e051
tree6006615a2012f216ab5fd3834e61ed3eaa3aa3ae
parent7ec33e63c0f2bce83f26d0a02e27a61ab2f6e65b
css: Avoid allocations in gtk_css_value_array_compute

Almost all array computations lead to no changes (99% in nautilus)
so we avoid the upfront allocation and delay it until we know its
needed. This drops the allocate/free from the profile.
gtk/gtkcssarrayvalue.c